import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";

export default defineConfig({
  plugins: [vue()],
  css: {
    preprocessorOptions: {
      scss: {},
    },
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"), // 设置 @ 别名指向 src 目录
    },
  },
  server: {
    host: '0.0.0.0', // 监听所有IP
    proxy: {
      "/api": {
        target: "http://10.15.88.196:8090",
        changeOrigin: true,
        secure: false,
        
      },
    },
  },
});
